module.exports = (api,options) => {
  options.devServer.before = require(api.resolve('./mock/mock-server')) // webpack 5 需要改为setupMiddlewares
}